const state = {
    loginStatus: false
}

const actions = {
    login ({commit}) {
        commit('loginLogout', true)
    },
    logout ({commit}) {
        commit('loginLogout', false)
    }
}

// mutations
const mutations = {
    loginLogout (state, loginStatus) {
        state.loginStatus = loginStatus
    }
}

export default {
    namespaced: true,
    state,
    actions,
    mutations
  }